<template>
  <div class="container">
    <div class="logo">
      <img
        alt="logo"
        src="//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"
      />
      <div class="logo-text">NEU Survey</div>
    </div>
    <LoginBanner />
    <div class="content">
      <div class="content-inner">
        <a-tabs position="left" type="rounded">
          <a-tab-pane key="1" title="登录">
            <LoginForm />
          </a-tab-pane>
          <a-tab-pane key="2" title="注册">
            <SignupForm />
          </a-tab-pane>
          <a-tab-pane key="3" title="重置密码">
            <RetrieveForm />
          </a-tab-pane>
        </a-tabs>
      </div>
      <div class="footer">
        <Footer />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import Footer from '@/components/footer/index.vue';
  import LoginBanner from './components/banner.vue';
  import LoginForm from './components/login-form.vue';
  import RetrieveForm from './components/retrieve-form.vue';
  import SignupForm from './components/signup-form.vue';
</script>

<style lang="less" scoped>
  .container {
    display: flex;
    height: 100vh;
    // transition: 0.5s;
    .banner {
      width: 550px;
      //设置了左半边的背景色 还挺好看的
      background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
    }

    .content {
      position: relative;
      display: flex;
      flex: 1;

      .content-inner {
        align-items: center;
        justify-content: center;
        width: 70%;
      }

      align-items: center;
      justify-content: center;
      // padding-top: 20%;
      padding-bottom: 40px;
    }

    .footer {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 100%;
    }
  }

  .logo {
    position: fixed;
    top: 24px;
    left: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;

    &-text {
      margin-right: 4px;
      margin-left: 4px;
      color: var(--color-fill-1);
      font-size: 20px;
    }
  }
</style>

<style lang="less" scoped>
  // responsive
  @media (max-width: @screen-lg) {
    .container {
      .banner {
        width: 25%;
      }
    }
  }
</style>
